import { emit } from '@/utils/helpers'

export default function (editor) {
  editor.ui.registry.addToggleMenuItem('contextmenu_abbr_manage', {
    text: '管理缩略语',
    onAction: () => {
      emit('show-abbr-mng-dialog')
    }
  })
}
